package com.clgc.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作业表
 * </p>
 *
 * @author testjava
 * @since 2021-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "EduTask对象", description = "作业表")
@TableName(value = "edu_task")
public class EduTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "作业id")
    private String id;

    @ApiModelProperty(value = "作业名")
    private String title;

    @ApiModelProperty(value = "最后提交时间")
    private Date submitTime;

    @ApiModelProperty(value = "状态，0未发布，1发布")
    private Integer status;

    @ApiModelProperty(value = "作业类型（0表示作业，1表示考试）")
    private Integer kind;

    @ApiModelProperty(value = "题目的题号")
    private String topic;

    @TableLogic(delval = "1")
    @TableField(value = "is_delete")
    @ApiModelProperty(value = "逻辑删除")
    private Integer isDelete;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @TableField(value = "start_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "作业开始时间")
    private Date startTime;

    @ApiModelProperty(value = "教师id")
    private String teacherId;

    @ApiModelProperty(value = "课程id")
    @TableField(value = "course_id")
    private String courseId;

    @ApiModelProperty(value = "班级id")
    private String classId;


}
